<?php

require_once("View/View/LoggedInView.php");

class HomepageView
{
	/**
	*@var loggedInView
	**/
	private $loggedInView;

	public function __construct()
	{
		$this->loggedInView = new LoggedInView();
	}

	/**
	*@return string
	**/
	public function getHomepage()
	{
		$html = $this->getHomepageHeader();
		$html .= $this->getHomepageBody();
		$html .= $this->getHomepageFooter();
		return $html;
	}

	/**
	*@return string
	**/
	private function getHomepageHeader()
	{
		$header = $this->loggedInView->getLoggedInHeader();
		return $header;
	}

	/**
	*@return string
	**/
	private function getHomepageBody()
	{
		$html = $this->getMenu();
		$html .= "<div id='homepageContainer'>
				  	   <h3>Tjenixen sixten! Det rullar på och sidan har kommit en bra bit på vägen!</h3>
				  </div>";
		return $html;
	}

	/**
	*@return string
	**/
	private function getMenu()
	{
		$html = $this->loggedInView->getLoggedInMenu();
	    return $html;
	}

	/**
	*@return string
	**/
	private function getHomepageFooter()
	{
		$footer = $this->loggedInView->getFooter();
		return $footer;
	}

}